﻿using Mrhd.Core.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Mrhd.Application
{
    /// <summary>
    /// 移动端服务
    /// </summary>
    public interface IMobileService
    {
        /// <summary>
        /// 根据用户id获取其绑定的商户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<BusinessEntity>> GetBindingBusinessAsync(int id);

        /// <summary>
        /// 授权用户信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        Task<UserMobileEntity> GrantAsync(UserMobileEntity user);

        /// <summary>
        /// 获取系统菜单
        /// </summary>
        /// <returns></returns>
        Task<List<ProductTypeEntity>> GetMenusAsync();

        /// <summary>
        /// 修改用户手机号
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        Task<bool> UpdatePhoneAsync(UserMobileEntity user);

    }
}
